package com.wpre.blogsystem.common.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * Created with IntelliJ IDEA.
 * Description:添加博客功能的请求
 * User: LianBao
 * Date: 2024-12-07
 * Time: 14:04
 */
@Data
public class AddBlogParam {
    @NotNull(message = "作者Id不能为空")
    private Integer userId;
    @NotBlank(message = "标题不能为空")
    @Length(max = 20, min = 4)
    private String title;
    @NotBlank(message = "文章内容不能为空")
    private String content;
}
